home *** CD-ROM | disk | FTP | other *** search
- Path: nntp-xfer-2.csn.net!yuma!steffend
- From: steffend@lamar.colostate.edu (Dave Steffen)
- Newsgroups: comp.lang.c++
- Subject: Re: randon number generator
- Date: 26 Jan 1996 17:07:16 GMT
- Organization: Colorado State University, Fort Collins, CO 80523
- Message-ID: <4eb1o4$3hfo@yuma.ACNS.ColoState.EDU>
- References: <4e6qt1$adb@ns.campus.mci.net> <DLr1H5.In8@rose.com>
- NNTP-Posting-Host: glitch.physics.colostate.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- A White (awhite@user.rose.com) wrote:
- > In article <4e6qt1$adb@ns.campus.mci.net>,
- > jack wilson <wilsojt@occ-uky.campus.mci.net> wrote:
- > >Hello all....I need a random number generator ...if anyone should have
- > >C or C++ source for this I would appreciate it. Please e-mail me at
- > >wilsojt@occ-uky.campus.mci.net Thanks in advance Jack
-
- > Why not include stdlib and use rand() and srand(<int>)
-
- Because those functions are not always very good random number
- generators, i.e. the sequences of numbers they generate may have
- correlations. According to "Numerical Recipies in C" (2nd Ed),
- 'system-supplied' generators have a dismal track record. There's
- another post in this thread that mentions several good sources, I'd go
- there to get my code.
-
- /\
- \/
-
- Dave Steffen No, his mind is not for rent
- Dept. of Physics To any God or Government
- Colorado State University Always hopeful, yet discontent
- steffend@lamar.colostate edu He knows changes aren't permanent-
- But change is...
- "Speak softly...
- ... and carry a black belt!" -Neal Peart / RUSH
- -----------------------------------------------------------------------
-